﻿using CQRSFramework.Events.Impl;
using System;
using System.Collections.Generic;
using System.Text;

namespace CQRSFramework.Domains
{
    public interface ICommandContext
    {
        T Get<T>(string aggregateRootId) where T : class, IAggregateRoot;
        void Add<T>(T aggregateRoot) where T : class, IAggregateRoot;
        IEnumerable<IAggregateRoot> GetTrackedAggregateRoots();
        void Clear();
    }
}
